<template>
  <view class="navbar" :style="{ paddingTop: safeAreaInsets.top + 'px' }">
    <view class="navbar-content">
      <view class="iconfont pet-back back" @click="navigateToSettings"></view>
      <view class="title">收货地址</view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      safeAreaInsets: {
        top: 0
      }
    };
  },
  created() {
    this.getSystemInfo();
  },
  methods: {
    getSystemInfo() {
      const systemInfo = uni.getSystemInfoSync();
      this.safeAreaInsets = systemInfo.safeAreaInsets || { top: 0 };
    },
    navigateToSettings() {
      uni.navigateTo({
        url: '/pagesMember/settings/settings' 
      });
    }
  }
};
</script>

<style lang="scss">
@import '../addShowStyles.scss';
</style>